package com.czl.lunt.Exception;

import com.czl.lunt.common.Result;

public class ApplicationException extends RuntimeException {
    protected Result errorResult;
    /**
     * 构造方法
     * @param errorResult
     */
    public ApplicationException (Result errorResult) {
        super(errorResult.getMessage());
        this.errorResult = errorResult;
    }

    public ApplicationException(String message) {
        super(message);
    }

    public ApplicationException(String message, Throwable cause) {
        super(message, cause);
    }

    public ApplicationException(Throwable cause) {
        super(cause);
    }

    public Result getErrorResult() {
        return errorResult;
    }
}
